package com.shujia.oop.two;

/*
局部变量和成员变量(属性)
 */
public class DogTest {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "旺财";

        dog.eat();

        System.out.println("-------------------");
        // 必须赋值
        dog.sleep(10);
    }

}
